package cn.tedu.ivos.vehicle.service;

import cn.tedu.ivos.vehicle.pojo.dto.VehicleQuery;
import cn.tedu.ivos.vehicle.pojo.dto.VehicleSaveDTO;
import cn.tedu.ivos.vehicle.pojo.vo.VehicleVO;

import java.util.List;

/**
 * @author liyuehui
 * @time 2024/7/10 9:13
 */
public interface VehicleService {
    /**
     * 查询车辆
     * @param vehicleQuery
     * @return List<VehicleVO>
     */
    List<VehicleVO> selectVehicle(VehicleQuery vehicleQuery);

    /**
     * 保存车辆
     * @param vehicleSaveDTO
     * @return int
     */
    int save(VehicleSaveDTO vehicleSaveDTO);

    /**
     * 删除车辆
     * @param id
     * @return int
     */
    int deleteVehicle(Long id);

    /**
     * 解绑车辆
     * @param id
     * @return int
     */
    int unBind(Long id);

    /**
     * 绑定车辆
     * @param vehicleId
     * @param geoId
     * @return int
     */
    int bind(Long vehicleId,Long geoId);

    /**
     * 查询车辆数量
     * @param vehicleQuery
     * @return int
     */
    int selectCount(VehicleQuery vehicleQuery);
}
